package com.zjitc.controller;

import com.zjitc.po.JsonDate;
import com.zjitc.po.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/27 15:58
 * @description:
 */

//测试类
@Controller
@RequestMapping("/test")
public class TestController {

  @RequestMapping("/auto")
  @ResponseBody
  public JsonDate autoConvertToJson(){
    JsonDate jd=new JsonDate();
    jd.setMsg("sakura");
    return jd;
  }
}
